package com.ruoyi.weixin.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类对象 goods_category
 *
 * @author dqianhe
 * @date 2022-04-27
 */
public class GoodsCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    private String id;

    /**
     * （1：开启；0：关闭）
     */
    @Excel(name = "", readConverterExp = "1=：开启；0：关闭")
    private String enable;

    /**
     * 父分类编号
     */
    @Excel(name = "父分类编号")
    private String parentId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String picUrl;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    private String delFlag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("enable", getEnable())
                .append("parentId", getParentId())
                .append("name", getName())
                .append("description", getDescription())
                .append("picUrl", getPicUrl())
                .append("sort", getSort())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
